<!DOCTYPE html>
<!-- saved from url=(0052)http://getbootstrap.com/docs/4.0/examples/dashboard/ -->
<html lang="en" xmlns:th="http://www.thymeleaf.org">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
		<meta name="description" content="">
		<meta name="author" content="">

		<title>修改user</title>
		<!-- Bootstrap core CSS -->
		<link href="/static/asserts/css/bootstrap.min.css" rel="stylesheet">
		<!-- Custom styles for this template -->
		<link href="/static/asserts/css/dashboard.css" rel="stylesheet">
	</head>

	<body>
		<!--引入抽取的topbar-->
		<!--模板名：会使用thymeleaf的前后缀配置规则进行解析-->
		<div th:replace="commons/bar::topbar"></div>

		<div class="container-fluid">
			<div class="row">
				<!--引入侧边栏-->
				<div th:replace="commons/bar::#sidebar(activeUri='emps')"></div>

				<main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">
					<!--需要区分是员工修改还是添加；-->
					<form th:action="@{'/admin/user/'+${session.id}}" method="post">

						<input type="hidden" name="_method" value="PUT"/>
						<div class="form-group">
							<label>userName</label>
							<input name="userName" type="text" class="form-control" th:value="${user.userName}">
						</div>
						<div class="form-group">
							<label>userBirthday</label>
							<input name="userBirthday" type="text" class="form-control" th:value="${user.userBirthday}">
						</div>
						<div class="form-group">
							<label>Gender</label><br/>
							<div class="form-check form-check-inline">
								<input class="form-check-input" type="radio" name="gender" value="男" th:checked="${user.userSex=='男'}">
								<label class="form-check-label">男</label>
							</div>
							<div class="form-check form-check-inline">
								<input class="form-check-input" type="radio" name="gender" value="女" th:checked="${user.userSex=='女'}">
								<label class="form-check-label">女</label>
							</div>
						</div>
						<div class="form-group">
							<label>userBalance</label>
							<input name="userBalance" type="text" class="form-control" th:value="${user.userBalance}">
						</div>
						<button type="submit" class="btn btn-primary">修 改</button>
					</form>
				</main>
			</div>
		</div>

		<!-- Bootstrap core JavaScript
    ================================================== -->
		<!-- Placed at the end of the document so the pages load faster -->
		<script type="text/javascript" src="/static/asserts/js/jquery-3.2.1.slim.min.js" ></script>
		<script type="text/javascript" src="/static/asserts/js/popper.min.js" ></script>
		<script type="text/javascript" src="/static/asserts/js/bootstrap.min.js"></script>



	</body>

</html>